package com.itnoob.command1.test2;

/**
 * @author zhoujun
 * @date 2025/3/18 23:05
 */
public class LightOnCommand implements Command{

    private Light light;

    public LightOnCommand(Light light) {
        this.light = light;
    }

    @Override
    public void execute() {
        light.on();
    }
}
